package cn.xiaopengstack.infrastructure.dao;

import cn.xiaopengstack.infrastructure.dao.po.AiClientApi;
import org.apache.ibatis.annotations.Param;

/**
* @author jiangyangang
* @description 针对表【ai_client_api(OpenAI API配置表)】的数据库操作Mapper
* @createDate 2025-08-29 15:15:19
* @Entity cn.xiaopengstack.infrastructure.dao.po.AiClientApi
*/
public interface AiClientApiMapper {

    int deleteByPrimaryKey(Long id);

    int insert(AiClientApi record);

    int insertSelective(AiClientApi record);

    AiClientApi selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AiClientApi record);

    int updateByPrimaryKey(AiClientApi record);

    /**
     * 查询API配置
     * @param apiId
     * @return
     */
    AiClientApi queryByApiId(@Param("apiId") String apiId);
}
